package com.arcbbs.service.impl;

import com.arcbbs.entity.ForumArticleAttachment;
import com.arcbbs.entity.ForumArticleAttachmentDownload;
import com.arcbbs.mapper.ForumArticleAttachmentDownloadMapper;
import com.arcbbs.mapper.ForumArticleAttachmentMapper;
import com.arcbbs.service.ForumArticleAttachmentDownloadService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ForumArticleAttachmentDownloadServiceImpl implements ForumArticleAttachmentDownloadService {
    @Resource
    private ForumArticleAttachmentDownloadMapper forumArticleAttachmentDownloadMapper;

    @Override
    public ForumArticleAttachmentDownload getbyfileidanduserid(String fileId, String userId) {
        ForumArticleAttachmentDownload forumArticleAttachment = forumArticleAttachmentDownloadMapper.selectbyfileidanduserid(fileId, userId);
        return forumArticleAttachment;
    }
}
